package com.anycl.design.behavioral.state.instancewithoutstatepattern;

public class Main {
    public static void main(String[] args) {
        ITelevision tv = new Television(TVStateEnum.POWER_OFF_STATE);
        tv.play();

        // 必须先开机，才能播放
        tv.powerOn();
        tv.play();
        tv.standby();
        tv.powerOff();
    }
}
